package com.lw.chat.model;

import cn.hutool.core.util.StrUtil;
import javafx.beans.property.ObjectProperty;
import javafx.beans.property.SimpleBooleanProperty;
import javafx.beans.property.SimpleObjectProperty;
import javafx.beans.property.SimpleStringProperty;
import javafx.scene.image.Image;

/**
 * @description: 会话列表model
 * @className: ChatModel
 * @author: liwen
 * @date: 2020/12/12 13:09
 */

public class Message {

    private String userName;
    private Boolean otherSide = true;
    private String avatarUri;
    private String msgImageUri;
    private String message;


    public Message() {
    }

    public Message(String userName, String avatarUrl, String imgUrl, String message) {
        this.userName = userName;
        this.avatarUri = avatarUrl;
        this.msgImageUri = imgUrl;
        this.message = message;
    }

    public Message(boolean otherSide, String userName, String avatarUrl, String imgUrl, String message) {
        setOtherSide(otherSide);
        this.userName = userName;
        this.avatarUri = avatarUrl;
        this.msgImageUri = imgUrl;
        this.message = message;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public Boolean getOtherSide() {
        return otherSide;
    }

    public void setOtherSide(Boolean otherSide) {
        this.otherSide = otherSide;
    }

    public String getAvatarUri() {
        return avatarUri;
    }

    public void setAvatarUri(String avatarUri) {
        this.avatarUri = avatarUri;
    }

    public String getMsgImageUri() {
        return msgImageUri;
    }

    public void setMsgImageUri(String msgImageUri) {
        this.msgImageUri = msgImageUri;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }
}
